package com.qiaofang.applet.service.other.service.dto;

import com.qiaofang.applet.common.base.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * Created by IDEA.
 *
 * @auther Zym.
 * @company qiaofang
 * @date 2020/9/12 10:56
 */
@Data
@ApiModel("公司数据保存参数")
@NoArgsConstructor
@AllArgsConstructor
public class CityCompanyDto extends BaseDto {
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "集团编码")
    private String corporationCode;

    @ApiModelProperty(value = "公司Uuid")
    private String companyUuid;

    @ApiModelProperty(value = "公司名称")
    private String companyName;

    @ApiModelProperty(value = "城市名称")
    private String companyCity;

    @ApiModelProperty(value = "城市code")
    private String cityCode;

    @ApiModelProperty(value = "启用状态,1 启用 0 停用")
    private Integer status;

    @ApiModelProperty(value = "默认标识：0 非默认|1 默认")
    private Integer defaultFlag;

    @ApiModelProperty(value = "初始化标识")
    private Boolean initFlag;

    @ApiModelProperty(value = "首页logo图")
    private String indexLogoImg;

    @ApiModelProperty(value = "公司logo图")
    private String companyLogoImg;

    @ApiModelProperty(value = "公司标语")
    private String slogan;

    @ApiModelProperty(value = "公司介绍")
    private String introduction;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "初始化标识",hidden = true)
    private String initFlagStr;

    @ApiModelProperty("交易进度查询URL")
    private String txh5Url;

    @ApiModelProperty(value = "主城市库标识 1 是 0 否")
    private Integer mainCityFlag;

    @ApiModelProperty(value = "城市子域名")
    private String subWebDomain;

    @ApiModelProperty("安居客城市ID")
    private Long universeCityId;

    public String getInitFlagStr(){
        return initFlag != null && initFlag ? "是" : "否";
    }
}
